import request from '@/utils/request'

export const getPage = (params: any) => request({
    method: 'get',
    url: '/article/page',
    params
})
export const getComPage = (params: any) => request({
    method: 'get',
    url: '/article/comPage',
    params
})

export const addComment = (params: any) => request({
    method: 'post',
    url: '/article/addCom',
    data: params
})
export const like = (params: any) => request({
    method: 'post',
    url: '/like',
    data: params
})
export const removelike = (params: any) => request({
    method: 'post',
    url: '/removelike',
    data: params
})
export const userlike = (params: any) => request({
    method: 'get',
    url: '/userlike',
    data: params
})